#include "mainwindow.h"

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
{
    this->setGeometry(0, 0, 800, 480);

    pushButton = new QPushButton(this);

    pushButton->setText("按钮音效测试");

    pushButton->setGeometry(340, 220, 120, 40);

    connect(pushButton, SIGNAL(clicked()),
            this, SLOT(pushButtonClicked()));
}

MainWindow::~MainWindow()
{
}

void MainWindow::pushButtonClicked()
{
    QSound::play(":/audio/上课铃.wav");
}
